package com.jian.java.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jiange
 * @create 2021-06-04-19:55
 */
@RestController
public class MyController {
    @Value("${server.port}")
    public String port;

    @GetMapping("/get")
    public String get(){
        return port;
    }
}
